<?php

namespace app\api\controller;
use  app\common\controller\DBase;
use app\common\controller\PCBase;
use app\api\logic\MabangOrderLogic;
class MabangOrder extends DBase
{


    /**
     * @desc   获取登录接口的token
     * @author luckyXiong
     * @date   2025-05-22
     */
    public function get_token(){
        $params     = $this->request->post();
        $res        = (new MabangOrderLogic())->get_authorization($params);
        return  $this->jsonMessage(200, true, '操作成功',$res);
    }



    /**
     * @desc   获取sku的库存信息
     * @author luckyXiong
     * @date   2025-05-22
     */
    public function get_sku_stock(){
        $params     = $this->request->post();
        $res        = (new MabangOrderLogic())->get_sku_stock($params);
        return  $this->jsonMessage(200, true, '操作成功',$res);
    }


    /**
     * @desc   获取商品行号
     * @author luckyXiong
     * @date   2025-05-22
     */
    public function get_salesRecordNumber(){
        $params     = $this->request->post();
        $res        = (new MabangOrderLogic())->get_salesRecordNumber($params);
        return  $this->jsonMessage(200, true, '操作成功',$res);
    }




    /**
     * @desc   拆分订单接口
     * @author luckyXiong
     * @date   2025-05-22
     */
    public function split_order(){
        $params     = $this->request->post();
        $res        = (new MabangOrderLogic())->split_order($params);
        return  $this->jsonMessage(200, true, '操作成功',$res);
    }


    /**
     * @desc   查看订单的发货状态
     * @author luckyXiong
     * @date   2025-05-22
     */
    public function get_order_list(){
        $params     = $this->request->post();
        $res        = (new MabangOrderLogic())->get_order_list($params);
        return  $this->jsonMessage(200, true, '操作成功',$res);
    }


    /**
     * @desc   订单发货处理
     * @author luckyXiong
     * @date   2025-06-04
     */
    public function deliver_order(){
        $params     = $this->request->post();
        $res        = (new MabangOrderLogic())->deliver_order($params);
        return  $this->jsonMessage(200, true, '操作成功',$res);
    }








}